package com.red.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.red.entity.RolePerm;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface RolePermMapper extends BaseMapper<RolePerm> {
    @Select("select perm_id from role_perm ${ew.customSqlSegment}")
    List<Integer> selectPermIds(@Param(Constants.WRAPPER) Wrapper<RolePerm> wrapper);
}
